/* 
 * 俄罗斯方块游戏样式
 * 包含游戏界面、方块和控制按钮的样式
 */

/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* 游戏区域样式 */
.game-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* 游戏信息区域 */
.game-info {
    width: 200px;
    text-align: left;
}

.score-container, .next-piece, .controls {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-container p, .next-piece p, .controls p {
    margin-bottom: 10px;
    font-weight: bold;
}

.controls ul {
    padding-left: 20px;
}

/* 游戏主画布样式 */
.game-board-container {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

canvas#game-board {
    border: 2px solid #333;
    background-color: #fafafa;
}

canvas#next-piece-canvas {
    border: 1px solid #ccc;
    background-color: #fafafa;
}

/* 按钮样式 */
.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
}

#start-button {
    background-color: #27ae60;
    color: white;
}

#start-button:hover {
    background-color: #2ecc71;
}

#pause-button {
    background-color: #f39c12;
    color: white;
}

#pause-button:hover {
    background-color: #f1c40f;
}

#reset-button {
    background-color: #e74c3c;
    color: white;
}

#reset-button:hover {
    background-color: #c0392b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    .game-info {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .score-container, .next-piece, .controls {
        width: calc(33% - 10px);
    }
    
    .buttons {
        flex-direction: column;
        gap: 10px;
    }
} 